package com.lzx.mq.feign;

import com.lzx.mq.vo.VoucherOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient("five-cube-activity")
public interface ActivityClient {
    //MQ服务保存订单和扣减库存
    @PostMapping("/activity/voucherOrder/web/saveOrderAndReduceStock")
    String saveOrderAndReduceStock(@RequestBody VoucherOrder voucherOrder);
}
